<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.css" rel="stylesheet" />
		<link href="../css/iconfont.css" rel="stylesheet" />
		<link href="../css/denglu.css" rel="stylesheet" />
		<link href="../css/indexlist.css" rel="stylesheet" />
		<link href="../css/layer.css" rel="stylesheet" />
		<script src="../js/jquery-1.9.1.min.js"></script>
		<script src="../js/global.js"></script>
		<script src="../js/layer.js"></script>
		<style>
			html,
			body {
				height: 100%;
				/*overflow: hidden;*/
			}
			
			.mui-bar {
				-webkit-box-shadow: none;
				box-shadow: none;
			}
		</style>
	</head>

	<body>
		<!--  顶部组件      -->
		<header class="mui-bar mui-bar-nav head">
			<!--<a href="../index.html">
				<span class="mui-icon mui-icon-arrowleft sp5"></span>
			</a>-->
			<h1 class="mui-title">登陆</h1>
		</header>

		<!--  主题内容组件     -->
		<div class="mui-content">
			<!--   选项卡         -->
			<div style="margin:20px auto" class="mui-segmented-control">
				<a class="mui-control-item mui-active" href="#item1">会员登陆</a>
				<a class="mui-control-item" href="#item2">经销商账号</a>
			</div>
			<div id="item1" class="mui-control-content mui-active">
				<p class="shang_p">
					<span>手机号：</span>
					<input id="haoma" type="text" />
				</p>
				<p class="shang_m">
					<span>密　码：</span>
					<input id="mima" type="text" />
				</p>
				<p class="shang_x">
					<span>验证码：</span>
					<input id="yanzhengma" type="text" />
					<button id="huoquyanzheng" onClick="send_sms_reg_code()">获取验证码</button>
				</p>
				<button id="denglu">登陆</button>
				<div style="font-size: 14px; color: #999999; margin: 30px auto 10px;">
					全站无需注册，手机号即可登录！<br>
					注：密码为您第一次登陆时输入的密码，如忘记密码，请到pc端修改密码
				</div>
			</div>
			<div id="item2" class="mui-control-content">
				<p class="shang_p">
					<span>账号：</span>
					<input id="zhanghao" type="text" />
				</p>
				<p class="shang_x">
					<span>密码：</span>
					<input id="password" type="password" />
				</p>
				<button style="margin-top: 50px;" id="dengru_2">登陆</button>
				<a href="shenqingyanzheng.html">
					<button style="margin-top: 20px;" id="shengqing">申请商户</button>
				</a>
				<a href="shenqingshuoming.html">
					<p class="shuoming">《申请商户说明》</p>
				</a>
			</div>
		</div>
		<script src="../js/mui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/indexlist.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<script>
            // 发送手机短信
            function send_sms_reg_code(){
                var mobile = $('#haoma').val();
                if(!checkMobile(mobile)){
                    // alert('请输入正确的手机号码');
                    layer.alert('请输入正确的手机号码', {icon: 2});// alert('请输入正确的手机号码');
                    return;
                }
                var url = "/index.php?m=Home&c=User&a=send_sms_reg_code&mobile="+mobile;
                $.ajax({
                    url:"http://www.reliants.cn/index.php?m=Home&c=User&a=send_sms_reg_code&mobile="+mobile,
                    type:'get',
                    async:true,
                    dataType:'JSONP',
                    success:function(data){
                        obj = $.parseJSON(data);
                        if(obj.status == 1)
                        {
                            $('#count_down').attr("disabled","disabled");
                            intAs = {$sms_time_out}; // 手机短信超时时间
                            jsInnerTimeout('count_down',intAs);
                        }
                        layer.alert(obj.msg, {icon: 1});// alert(obj.msg);
                    },
                    error:function(XMLHttpRequest, textStatus, errorThrown){
						alert('shibai')
                    },
                })
            }
		</script>
	</body>

</html>